package com.assignwork.service;

import com.assignwork.dto.DailySafeInfoSearchDTO;
import com.assignwork.dto.DailySafeInfoSubmitDTO;
import com.assignwork.entity.DailySafeInfo;
import com.assignwork.vo.DailySafeInfoVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName IDailySafeInfoService
 * @Description 每日安全告知接口
 * @Author dujianyu
 * @Date 2023/12/24 17:28
 */
public interface IDailySafeInfoService extends BaseService<DailySafeInfo> {
    /**
     * 新增
     * @param dto 数据
     * @return boolean
     * @author dujianyu
     * @since 2023/12/24 17:36
     */
    boolean submitSafeInfo(DailySafeInfoSubmitDTO dto);

    /**
     * 根据日期返回安全信息
     * @param dto 搜索条件
     * @return List<DailySafeInfoVO>
     * @author dujianyu
     * @since 2023/12/24 18:04
     */
    List<DailySafeInfoVO> safeInfoByDate(DailySafeInfoSearchDTO dto);

    /**
     * 从之前一天导入
     * @param dto 搜索条件
     * @return boolean
     * @author dujianyu
     * @since 2024/1/12 13:21
     */
    boolean importFromPrevious(DailySafeInfoSearchDTO dto);
}
